//Implementation File
//from Outcome header file
//private
         //BetSystem betting
         
#include<iostream>
#include "Outcome.h"

using namespace std;

//////////////////////////////Constructor///////////////////////////////////////////////////////////////////////////
Outcome :: Outcome(){
    betting = new BetSystem;
    money = betting->getMoney();

    
}

//////////////////////////////////////Win Function//////////////////////////////////////////////////////////////////
void Outcome :: win(float amountBet){
         betting->winMoney(amountBet);
         cout<<"Congratulations you have won this game!"<<endl<<endl;
         
        
        
}
/////////////////////////////////////Natural Win Fucntion/////////////////////////////////////////////////////////
void Outcome::Nwin(float amountBet){
      betting->winMoneyNatural(amountBet);
      cout<<"Congratulations you have won this game!  Also you got a Natrual Black Jack."<<endl;
      cout<<"You get a bigger pay off for that."<<endl<<endl;
      
}
/////////////////////////////////////Lose Function//////////////////////////////////////////////////////////////////
void Outcome::lose(float amountBet){
       betting->loseMoney(amountBet);
       cout<<"I am sorry you have lost this time.  Better luck next game!!"<<endl<<endl;
  
}
////////////////////////////////////Get Money///////////////////////////////////////////////////////////////////
float Outcome::findMoney(){
      return betting->getMoney();
}

///////////////////////////////////////Set Money///////////////////////////////////////////////////////////////
void Outcome :: setAmount(float money){
    betting->setMoney(money);
}
